//
//  NKMyCollectionCell.m
//  NiKi
//
//  Created by qiang chen on 16/6/27.
//  Copyright © 2016年 qiang chen. All rights reserved.
//

#import "NKMyCollectionCell.h"

@implementation NKMyCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setFrame:(CGRect)frame
{
    //修改cell的左右边距为10;
    //修改cell的Y值下移10;
    //修改cell的高度减少10;
    
    static CGFloat margin = 10;
    frame.origin.x = margin;
    frame.size.width -= 2 * frame.origin.x;
    frame.origin.y += margin;
    frame.size.height -= margin;
    
    [super setFrame:frame];
}
@end
